<?php
require_once("PHPMySQLiDatabaseClass/MysqliDb.php");
require_once("db_config.php");
$db_config = new dbConfig();
$db = new MysqliDb
(
    $db_config->host,
    $db_config->account,
    $db_config->pwd,
    'student'
);
$db->where("allow",1);
$json = $db->jsonBuilder()->get("task");
echo $json;
?>